function varargout = chapter9_cyclonedesign_calculation(varargin)
% CHAPTER9_CYCLONEDESIGN_CALCULATION MATLAB code for chapter9_cyclonedesign_calculation.fig
%      CHAPTER9_CYCLONEDESIGN_CALCULATION, by itself, creates a new CHAPTER9_CYCLONEDESIGN_CALCULATION or raises the existing
%      singleton*.
%
%      H = CHAPTER9_CYCLONEDESIGN_CALCULATION returns the handle to a new CHAPTER9_CYCLONEDESIGN_CALCULATION or the handle to
%      the existing singleton*.
%
%      CHAPTER9_CYCLONEDESIGN_CALCULATION('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in CHAPTER9_CYCLONEDESIGN_CALCULATION.M with the given input arguments.
%
%      CHAPTER9_CYCLONEDESIGN_CALCULATION('Property','Value',...) creates a new CHAPTER9_CYCLONEDESIGN_CALCULATION or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before chapter9_cyclonedesign_calculation_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to chapter9_cyclonedesign_calculation_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES

% Edit the above text to modify the response to help chapter9_cyclonedesign_calculation

% Last Modified by GUIDE v2.5 13-Jan-2014 12:18:20

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @chapter9_cyclonedesign_calculation_OpeningFcn, ...
                   'gui_OutputFcn',  @chapter9_cyclonedesign_calculation_OutputFcn, ...
                   'gui_LayoutFcn',  [] , ...
                   'gui_Callback',   []);
if nargin && ischar(varargin{1})
    gui_State.gui_Callback = str2func(varargin{1});
end

if nargout
    [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT


% --- Executes just before chapter9_cyclonedesign_calculation is made visible.
function chapter9_cyclonedesign_calculation_OpeningFcn(hObject, eventdata, handles, varargin)
addpath(genpath('chapter9'));
handles.denF=getappdata(0,'denF');
handles.denP=getappdata(0,'denP');
handles.vis=getappdata(0,'vis');
handles.Q=getappdata(0,'Q');
handles.size=getappdata(0,'size');
handles.pressure=getappdata(0,'pressure');
handles.Eu=getappdata(0,'Eu');
handles.Stk50=getappdata(0,'Stk50');
axes(handles.plot);
cla;
showCycloneDesign(handles.size,handles.Q,handles.denP,handles.denF,handles.vis,handles.pressure,handles.Eu,handles.Stk50)
handles.output = hObject;
guidata(hObject, handles);



function varargout = chapter9_cyclonedesign_calculation_OutputFcn(hObject, eventdata, handles) 
varargout{1} = handles.output;


% --- Executes during object creation, after setting all properties.
function plot_CreateFcn(hObject, eventdata, handles)
% hObject    handle to plot (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    empty - handles not created until after all CreateFcns called

% Hint: place code in OpeningFcn to populate plot
